package com.chendx.model.seckill.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/****
 * @Author:admin
 * @Description:SeckillOrder构建
 * @Date 2019/6/14 19:13
 *****/
@Data
@TableName("tb_seckill_order")
public class SeckillOrder implements Serializable{

    @TableId(value = "id", type = IdType.ID_WORKER)
	private Long id;//主键

    @TableField("seckill_id")
	private Long seckillId;//秒杀商品ID

    @TableField("money")
	private Integer money;//支付金额

    @TableField("user_id")
	private String userId;//用户

    @TableField("create_time")
	private Date createTime;//创建时间

    @TableField("pay_time")
	private Date payTime;//支付时间

    @TableField("status")
	private String status;//状态，0未支付，1已支付

    @TableField("receiver_address")
	private String receiverAddress;//收货人地址

    @TableField("receiver_mobile")
	private String receiverMobile;//收货人电话

    @TableField("receiver")
	private String receiver;//收货人

    @TableField("transaction_id")
	private String transactionId;//交易流水


    @TableField("post_fee")
    private Integer postFee;//邮费

    @TableField("consign_time")
    private Date consignTime;//发货时间

    @TableField("end_time")
    private Date endTime;//交易完成时间

    @TableField("close_time")
    private Date closeTime;//交易关闭时间

    @TableField("shipping_name")
    private String shippingName;//物流名称

    @TableField("shipping_code")
    private String shippingCode;//物流单号

    @TableField("buyer_message")
    private String buyerMessage;//买家留言

    @TableField("buyer_rate")
    private String buyerRate;//是否评价

    @TableField("order_status")
    private String orderStatus;//订单状态,0:未完成,1:已完成，2：已退货,3:关闭订单

    @TableField("pay_status")
    private String payStatus;//支付状态,0:未支付，1：已支付，2：支付失败,3:关闭支付

    @TableField("consign_status")
    private String consignStatus;//发货状态,0:未发货，1：已发货，2：已收货

    @TableField("is_delete")
    private String isDelete;//是否删除

}
